package com.github.zyf.ioaj.exception;

import com.github.zyf.ioaj.exception.constant.ContentBuilderExceptionType;

/**
 * @author zyf
 */
public class ContentBuilderException extends RuntimeException{

    private final String message;

    public ContentBuilderException(ContentBuilderExceptionType contentBuilderExceptionType) {
        super(contentBuilderExceptionType.getDesc());
        this.message = contentBuilderExceptionType.getDesc();
    }

    @Override
    public String getMessage() {
        return message;
    }
}
